# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

# 定义程序核心文件与资源（不含FFmpeg）
a = Analysis(
    ['main_ui.py'],  # 主程序入口
    pathex=[],
    binaries=[],  # 移除FFmpeg相关配置
    datas=[('0603.ico', '.')],  # 仅保留图标文件
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)

pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    [],
    name='Ez MP3转换器&NF',  # 生成的exe文件名
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,  # 保持压缩以减小体积
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,  # 关闭控制台窗口
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon='0603.ico',  # 程序图标
)
